package com.eastfair.projectcore.dto;

import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.eastfair.core.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 电子橱窗表
 * </p>
 *
 * @author ligang
 * @since 2021-08-09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "HotImageUpdateDTO", description = "电子橱窗表")
public class HotImageUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 图片url
     */
    @ApiModelProperty(value = "图片url")
    @NotEmpty(message = "请填写图片url")
    @Size(max = 255, message = "图片url长度不能超过255")
    private String url;
    /**
     * 展商id
     */
    @ApiModelProperty(value = "展商id")
    @NotNull(message = "请填写展商id")
    private Long exhibitorId;
    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    @NotNull(message = "请填写展会id")
    private Long exhibitionId;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sequence;
    /**
     * 是否推荐（0不推荐，1推荐）
     */
    @ApiModelProperty(value = "是否推荐（0不推荐，1推荐）")
    private Boolean recommend;
    /**
     * 推荐时间
     */
    @ApiModelProperty(value = "推荐时间")
    private LocalDateTime recommendTime;
    /**
     * 是否生效(默认1：可用 0:不可用)
     */
    @ApiModelProperty(value = "是否生效(默认1：可用 0:不可用)")
    private Integer enabled;
    /**
     * 是否删除(默认0：未删除 1:已删除)
     */
    @ApiModelProperty(value = "是否删除(默认0：未删除 1:已删除)")
    private Integer deleted;
}
